﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using SpaceNeedle.x6473.WindowsPhone.ViewModels;
using SpaceNeedle.SDK.WindowsPhone.Views;

namespace SpaceNeedle.x6473.WindowsPhone.Views
{
    public class WelcomeView : ViewBase<WelcomeViewModel> { }
    public partial class Welcome : WelcomeView
    {
        public Welcome()
        {
            InitializeComponent();
            this.BackKeyPress += Welcome_BackKeyPress;
        }

        void Welcome_BackKeyPress(object sender, System.ComponentModel.CancelEventArgs e)
        {
            Application.Current.Terminate();
        }

        private void OnEntrarButton_Click(object sender, RoutedEventArgs e)
        {
            this.ViewModel.LoginRedirectCommand.Execute(null);
        }
    }
}